<!DOCTYPE html>
<html>
    <head>
        <script src="vue.js"></script>
    </head>
    <body>
        <div id="app">
            <p>{{name}}</p>
        </div>
        <script>
            var vm = new Vue({
                el:'#app',
                data: {
                    name: '定义初始数据'
                }
            })
            console.log(vm.$data.name)
            
        </script>
    </body>
</html>